package com.shuhua.taskServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuhua.pojo.entity.TaskCollect;
import com.shuhua.taskServer.mapper.TaskCollectMapper;
import com.shuhua.taskServer.service.TaskCollectService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TaskCollectServiceImpl extends ServiceImpl<TaskCollectMapper, TaskCollect> implements TaskCollectService {
    @Override
    public List<Map<String, Object>> getCollectWithTaskByCraftsmanId(Long craftsmanId) {
        return this.baseMapper.selectCollectWithTaskByCraftsmanId(craftsmanId);
    }

    @Override
    public Map<String, Object> getCollectWithTaskByTaskAndCraftsman(Long taskId, Long craftsmanId) {
        return this.baseMapper.selectCollectWithTaskByTaskAndCraftsman(taskId, craftsmanId);
    }

    @Override
    public List<Map<String, Object>> getAllCollectWithTask() {
        return this.baseMapper.selectAllCollectWithTask();
    }
} 